package per.turtle.common.core.constant;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * 通用常量信息
 *
 * @author turtle
 */
@SuppressWarnings("unused")
public class CommonConstants {

    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 注册
     */
    public static final String REGISTER = "Register";

    /**
     * 时间范围始
     */
    public static final String START_TIME = "startTime";

    /**
     * 时间范围终
     */
    public static final String END_TIME = "endTime";

    @RequiredArgsConstructor
    public enum IsDisabled {
        /**
         * 可用
         */
        NORMAL("0"),
        /**
         * 停用
         */
        DISABLED("1");

        @Getter
        private final String value;

    }

    @RequiredArgsConstructor
    public enum YesOrNo {
        /**
         * 可用
         */
        YES("1"),
        /**
         * 停用
         */
        NO("0");

        @Getter
        private final String value;

    }

}
